<template>
	<view class="">
		<uni-nav-bar shadow title="" @clickLeft="$wanlshop.back(1)" height="88rpx" :border="false" :fixed="true" backgroundColor="#FFFFFF"
			:shadow="false" left-icon="left"></uni-nav-bar>
			<view class="CardContainer2">
				<view class="" v-for="(i,n) in brand" :key='n' >
					<text>{{i.name}}</text>
					<text style="color: royalblue;" @click="toDetail(i,n)">合作查询</text>
				</view>
			</view>
			
	</view>
</template>

<script>
	export default {
		props: {

		},
		data() {
			return {
				brand:[],
				mechanism:[],
				image:""

			}
		},
		created() {
			// this.getListData()
		},
		onLoad(options) {
				this.getListData(options.id)
		},
		methods: {
			getListData(id) {
				this.$api.post({
					url: '/index/getMechanismCateChild',data: {
						pid:id
					},
			
					success: res => {
						console.log(res)
						this.brand=res
						
					
						
					}
				})
			},
			toDetail(i,n){
				uni.navigateTo({
					url:'/pages/teacher/partners/detail?id='+i.pid+'&index='+n
				})
			},
			showQrcode(i){
				console.log(i)
					this.image = i.line_image
					this.$refs['adModal'].open()
			}
			}	
			

	}
</script>

<style lang="scss">
	.CardContainer2{
		background: #fff;
		padding: 32rpx ;
		font-size: 20rpx;
		color: #333;
	
		view{
			border-bottom: 2rpx solid #e2e2e2;
			margin-top: 20rpx;
				padding-bottom: 10rpx;
				display: flex;
				justify-content: space-between;
		}
	
	}
</style>
